package work.huangxin.share.domain.admin;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import java.util.Date;

/**
* @author 钟声浩
* @date 2023/4/5 13:02
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user_block")
public class UserBlock {

    /**
     * 编号
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    private Integer userId;

    /**
     * 拉黑的时间
     */
    @Column(name = "block_time")
    private Date blockTime;

    /**
     * 解锁的时间
     */
    @Column(name = "unlock_time")
    private Date unlockTime;

    /**
     * 状态
     */
    @Column(name = "status")
    private Integer status;

    /**
     * 解锁的时间
     */
    @Column(name = "expire_time")
    private Long expireTime;

    /**
     * 是否删除
     */
    @Column(name = "deleted")
    private Integer deleted;

    public UserBlock(Integer userId, Long expireTime) {
        this.userId = userId;
        this.expireTime = expireTime;
    }
}
